/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package character_7;

import character_7.jiekou.Swimmer;

/**
 *
 * @author Administrator
 */
public class Boat implements Swimmer{
    protected String name;

    public Boat(String name) {
        this.name = name;
    }
    
    @Override
    public void swim(){
        System.out.println("船在水面" + name +"航行");
    }
}
